package java51_17;

import java.util.Scanner;

public class ClsTest {
	// java.util.Vector:他的父类和所有的接口
	public static void main(String[] args) {
		Class c0 = ClsTest.class;
		Class c1 = Scanner.class;
		Scanner sc = new Scanner(System.in);
		Class c2 = sc.getClass();
		System.out.println(c1 == c2);

		Class c3 = c1.getSuperclass();
		System.out.println("scanner 父类：" + c3.getName());
		// 接口
		System.out.println("接口");
		Class[] cr = c1.getInterfaces();
		for (Class t : cr) {
			System.out.println(t);
		}
	}

}
